<template>
	<div class="m-banner">
    <swiper :options="swiperOption">
      <swiper-slide><div class="pure-color" style="background: rgba(255,163,146,0.75);"></div></swiper-slide>
      <swiper-slide><div class="pure-color" style="background: rgba(3,176,255,0.67);"></div></swiper-slide>
      <swiper-slide><div class="pure-color" style="background: rgba(0,25,255,0.78);"></div></swiper-slide>
      <swiper-slide><div class="pure-color" style="background: #ffa810;"></div></swiper-slide>
      <swiper-slide><div class="pure-color" style="background: #00932c;"></div></swiper-slide>
      <div class="swiper-pagination"  slot="pagination"></div>
    </swiper>
  </div>
</template>

<script>
import 'swiper/dist/css/swiper.css'
import { swiper, swiperSlide } from 'vue-awesome-swiper'
export default {
  name: 'mall-banner',
  data () {
    return {
      swiperOption: {
        autoplay: 3000,
        speed: 200,
        loop: true,
        pagination: {
          el: '.swiper-pagination',
          clickable :true
        }
      }
    }
  },
  components: {
    swiper,
    swiperSlide
  }
}
</script>

<style scoped lang="less">
@deep: ~'>>>';
.m-banner{
  padding: .28rem;
  background: #fff;
}
.pure-color{
  height: 3.5rem;
}
@{deep}.swiper-pagination-bullet{
  margin: 0 .06rem !important;
  opacity: 1!important;
  width: .18rem;
  height: .18rem;
  background: rgba(255,255,255,.4) !important;
  transition: width .1s linear;
}
@{deep}.swiper-pagination-bullet-active{
  width: .6rem;
  border-radius: 16px;
}
@{deep}.swiper-container{
  border-radius: 10px;
}
</style>
